import request from './request'

// 获取活动列表 /activity get 参数
export const reqGetActivityList = ({ currentPage, pageSize }) => {
  return request({
    url: `/activity?currentPage=${currentPage}&pageSize=${pageSize}`
  })
}
// 修改/删除活动 /activity/update post 参数：activity
export const reqUpdateActivity = (data) => {
  return request({
    url: '/activity/update',
    method: 'POST',
    data
  })
}
// 增加活动 /activity/add POST 参数：activity
export const reqInsertActivity = (data) => {
  return request({
    url: '/activity/add',
    method: 'POST',
    data
  })
}
// 获取活动类型列表 /activitycategory get 参数
export const reqGetCategoryList = ({ currentPage, pageSize }) => {
  return request({
    url: `/activitycategory?currentPage=${currentPage}&pageSize=${pageSize}`
  })
}
// 修改/删除活动类型 /activitycategory/update post 参数：category
export const reqUpdateCategory = (data) => {
  return request({
    url: '/activitycategory/update',
    method: 'POST',
    data
  })
}
// 增加活动类型 /activitycategory/add POST 参数：activity
export const reqInsertCategory = (data) => {
  return request({
    url: '/activitycategory/add',
    method: 'POST',
    data
  })
}
